package com.cp.sms.feign;

import com.cp.common.result.R;
import com.cp.sms.feign.fallback.CoreUserInfoFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ming
 * @create 2022/8/2
 * @description:
 */
@FeignClient(value = "service-core",fallback = CoreUserInfoFallback.class)
public interface CoreUserInfoFeign {
    @GetMapping("/api/core/userInfo/checkMobile/{mobile}")
    boolean checkMobile(@PathVariable String mobile);
}
